package com.rightsidetech.trade.dtos.request;

import com.rightsidetech.commom.base.PageRequest;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Pattern;
import java.io.Serializable;

@Data
@ApiModel("订单查询")
public class TdCommodityAgentAppRequest extends PageRequest implements Serializable {

    @ApiModelProperty(value = "订单状态,  0-待付款,1-待处理, 34-售后",required = false)
    @Pattern(regexp = "^0|1|34$",message = "订单状态不正确")
    private String orderStatus;

    @ApiModelProperty(value = "门店id",required = false)
    private Long storeId;

    @ApiModelProperty(value = "代理商id",required = true)
    private Long agentId;

    @ApiModelProperty(value = "搜索条件",required = false)
    @Pattern(regexp = "^[\\u4e00-\\u9fa5a-zA-Z0-9-_]{0,}$", message = "搜索条件不能包含特殊符号")
    private String condition;
}
